﻿using System.Web;
using System.Web.Optimization;

namespace ZRT.RHPX.Web
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        //在请求时jquery.easyui.min.js始终不加载，而把它的文件改成了jquery-easyui-min.js就可以加载该JS了， 
        //是因为在打包压缩是会自动过滤后缀名为 .intellisense.js、-vsdoc.js、.debug.js、.min.js、.min.css的文件
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/content/css").Include(
                "~/Scripts/showLoading/showLoading.css",
                "~/CSS/sexybuttons.css",
                "~/CSS/common.css",
                "~/CSS/icon.css",
                "~/Scripts/easyui/themes/default/easyui.css",
                "~/Scripts/jnotify/jquery.jnotify.css",
                "~/CSS/css3btn.css",
                "~/Scripts/artDialog/skins/blue.css",
                "~/Theme/default/style.css"
                ));

            bundles.Add(new ScriptBundle("~/bundles/easyui").Include(
                "~/Scripts/easyui/jquery-1.8.0-min.js",
                "~/Scripts/easyui/jquery.easyui-min.js",
                "~/Scripts/easyui/easyloader.js",
                "~/Scripts/easyui/locale/easyui-lang-zh_CN.js"
                ));

            bundles.Add(new ScriptBundle("~/bundles/showLoading").Include(
                "~/Scripts/showLoading/jquery.showLoading-min.js"
                ));

            bundles.Add(new ScriptBundle("~/bundles/layout").Include(
                "~/Scripts/business/layout/newlayout.js"
                ));

            bundles.Add(new ScriptBundle("~/bundles/jnotify").Include(
                "~/Scripts/jnotify/jquery.jnotify.js"
                ));

            bundles.Add(new ScriptBundle("~/bundles/common").Include(
                "~/Scripts/business/common/jQuery.Ajax.js",
                "~/Scripts/business/common/Message.js"
                ));

            bundles.Add(new ScriptBundle("~/bundles/artDialog").Include(
                "~/Scripts/artDialog/artDialog.js",
                "~/Scripts/artDialog/plugins/iframeTools.js"
                ));
        }   
    }
}